Optimal. Leaf size=457 \[ -\frac {\left (6 a^2 b c d-2 b^3 c d-a^3 \left (c^2-d^2\right )+3 a b^2 \left (c^2-d^2\right )\right ) x}{\left (a^2+b^2\right )^3 \left (c^2+d^2\right )^2}-\frac {b^3 \left (10 a^3 b c d+2 a b^3 c d-10 a^4 d^2+b^4 \left (c^2-3 d^2\right )-3 a^2 b^2 \left (c^2+3 d^2\right )\right ) \log (a \cos (e+f x)+b \sin (e+f x))}{\left (a^2+b^2\right )^3 (b c-a d)^4 f}-\frac {d^4 \left (5 b c^2-2 a c d+3 b d^2\right ) \log (c \cos (e+f x)+d \sin (e+f x))}{(b c-a d)^4 \left (c^2+d^2\right )^2 f}+\frac {d \left (a^4 d^3-2 a b^3 c \left (c^2+d^2\right )+2 a^2 b^2 d \left (2 c^2+3 d^2\right )+b^4 d \left (2 c^2+3 d^2\right )\right )}{\left (a^2+b^2\right )^2 (b c-a d)^3 \left (c^2+d^2\right ) f (c+d \tan (e+f x))}-\frac {b^2}{2 \left (a^2+b^2\right ) (b c-a d) f (a+b \tan (e+f x))^2 (c+d \tan (e+f x))}-\frac {b^2 \left (4 a b c-7 a^2 d-3 b^2 d\right )}{2 \left (a^2+b^2\right )^2 (b c-a d)^2 f (a+b \tan (e+f x)) (c+d \tan (e+f x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.24, antiderivative size = 457, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3650, 3730,
3732, 3611} \begin {gather*} -\frac {b^2 \left (-7 a^2 d+4 a b c-3 b^2 d\right )}{2 f \left (a^2+b^2\right )^2 (b c-a d)^2 (a+b \tan (e+f x)) (c+d \tan (e+f x))}-\frac {b^2}{2 f \left (a^2+b^2\right ) (b c-a d) (a+b \tan (e+f x))^2 (c+d \tan (e+f x))}+\frac {d \left (a^4 d^3+2 a^2 b^2 d \left (2 c^2+3 d^2\right )-2 a b^3 c \left (c^2+d^2\right )+b^4 d \left (2 c^2+3 d^2\right )\right )}{f \left (a^2+b^2\right )^2 \left (c^2+d^2\right ) (b c-a d)^3 (c+d \tan (e+f x))}-\frac {x \left (-\left (a^3 \left (c^2-d^2\right )\right )+6 a^2 b c d+3 a b^2 \left (c^2-d^2\right )-2 b^3 c d\right )}{\left (a^2+b^2\right )^3 \left (c^2+d^2\right )^2}-\frac {b^3 \left (-10 a^4 d^2+10 a^3 b c d-3 a^2 b^2 \left (c^2+3 d^2\right )+2 a b^3 c d+b^4 \left (c^2-3 d^2\right )\right ) \log (a \cos (e+f x)+b \sin (e+f x))}{f \left (a^2+b^2\right )^3 (b c-a d)^4}-\frac {d^4 \left (-2 a c d+5 b c^2+3 b d^2\right ) \log (c \cos (e+f x)+d \sin (e+f x))}{f \left (c^2+d^2\right )^2 (b c-a d)^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3611
Rule 3650
Rule 3730
Rule 3732
Rubi steps
\begin {align*} \int \frac {1}{(a+b \tan (e+f x))^3 (c+d \tan (e+f x))^2} \, dx &=-\frac {b^2}{2 \left (a^2+b^2\right ) (b c-a d) f (a+b \tan (e+f x))^2 (c+d \tan (e+f x))}-\frac {\int \frac {-2 a b c+2 a^2 d+3 b^2 d+2 b (b c-a d) \tan (e+f x)+3 b^2 d \tan ^2(e+f x)}{(a+b \tan (e+f x))^2 (c+d \tan (e+f x))^2} \, dx}{2 \left (a^2+b^2\right ) (b c-a d)}\\ &=-\frac {b^2}{2 \left (a^2+b^2\right ) (b c-a d) f (a+b \tan (e+f x))^2 (c+d \tan (e+f x))}-\frac {b^2 \left (4 a b c-7 a^2 d-3 b^2 d\right )}{2 \left (a^2+b^2\right )^2 (b c-a d)^2 f (a+b \tan (e+f x)) (c+d \tan (e+f x))}+\frac {\int \frac {-2 \left (2 a^3 b c d+2 a b^3 c d-a^4 d^2+b^4 \left (c^2-3 d^2\right )-a^2 b^2 \left (c^2+6 d^2\right )\right )-4 a b (b c-a d)^2 \tan (e+f x)-2 b^2 d \left (4 a b c-7 a^2 d-3 b^2 d\right ) \tan ^2(e+f x)}{(a+b \tan (e+f x)) (c+d \tan (e+f x))^2} \, dx}{2 \left (a^2+b^2\right )^2 (b c-a d)^2}\\ &=\frac {d \left (a^4 d^3-2 a b^3 c \left (c^2+d^2\right )+2 a^2 b^2 d \left (2 c^2+3 d^2\right )+b^4 d \left (2 c^2+3 d^2\right )\right )}{\left (a^2+b^2\right )^2 (b c-a d)^3 \left (c^2+d^2\right ) f (c+d \tan (e+f x))}-\frac {b^2}{2 \left (a^2+b^2\right ) (b c-a d) f (a+b \tan (e+f x))^2 (c+d \tan (e+f x))}-\frac {b^2 \left (4 a b c-7 a^2 d-3 b^2 d\right )}{2 \left (a^2+b^2\right )^2 (b c-a d)^2 f (a+b \tan (e+f x)) (c+d \tan (e+f x))}+\frac {\int \frac {-2 \left (a^5 c d^3-3 a^4 b d^2 \left (c^2+d^2\right )+a b^4 c d \left (c^2+2 d^2\right )+a^3 b^2 c d \left (3 c^2+5 d^2\right )+b^5 \left (c^4-2 c^2 d^2-3 d^4\right )-a^2 b^3 \left (c^4+7 c^2 d^2+6 d^4\right )\right )-2 (b c-a d)^3 \left (2 a b c+a^2 d-b^2 d\right ) \tan (e+f x)+2 b d \left (a^4 d^3-2 a b^3 c \left (c^2+d^2\right )+2 a^2 b^2 d \left (2 c^2+3 d^2\right )+b^4 d \left (2 c^2+3 d^2\right )\right ) \tan ^2(e+f x)}{(a+b \tan (e+f x)) (c+d \tan (e+f x))} \, dx}{2 \left (a^2+b^2\right )^2 (b c-a d)^3 \left (c^2+d^2\right )}\\ &=-\frac {\left (6 a^2 b c d-2 b^3 c d-a^3 \left (c^2-d^2\right )+3 a b^2 \left (c^2-d^2\right )\right ) x}{\left (a^2+b^2\right )^3 \left (c^2+d^2\right )^2}+\frac {d \left (a^4 d^3-2 a b^3 c \left (c^2+d^2\right )+2 a^2 b^2 d \left (2 c^2+3 d^2\right )+b^4 d \left (2 c^2+3 d^2\right )\right )}{\left (a^2+b^2\right )^2 (b c-a d)^3 \left (c^2+d^2\right ) f (c+d \tan (e+f x))}-\frac {b^2}{2 \left (a^2+b^2\right ) (b c-a d) f (a+b \tan (e+f x))^2 (c+d \tan (e+f x))}-\frac {b^2 \left (4 a b c-7 a^2 d-3 b^2 d\right )}{2 \left (a^2+b^2\right )^2 (b c-a d)^2 f (a+b \tan (e+f x)) (c+d \tan (e+f x))}-\frac {\left (d^4 \left (5 b c^2-2 a c d+3 b d^2\right )\right ) \int \frac {d-c \tan (e+f x)}{c+d \tan (e+f x)} \, dx}{(b c-a d)^4 \left (c^2+d^2\right )^2}-\frac {\left (b^3 \left (10 a^3 b c d+2 a b^3 c d-10 a^4 d^2+b^4 \left (c^2-3 d^2\right )-3 a^2 b^2 \left (c^2+3 d^2\right )\right )\right ) \int \frac {b-a \tan (e+f x)}{a+b \tan (e+f x)} \, dx}{\left (a^2+b^2\right )^3 (b c-a d)^4}\\ &=-\frac {\left (6 a^2 b c d-2 b^3 c d-a^3 \left (c^2-d^2\right )+3 a b^2 \left (c^2-d^2\right )\right ) x}{\left (a^2+b^2\right )^3 \left (c^2+d^2\right )^2}-\frac {b^3 \left (10 a^3 b c d+2 a b^3 c d-10 a^4 d^2+b^4 \left (c^2-3 d^2\right )-3 a^2 b^2 \left (c^2+3 d^2\right )\right ) \log (a \cos (e+f x)+b \sin (e+f x))}{\left (a^2+b^2\right )^3 (b c-a d)^4 f}-\frac {d^4 \left (5 b c^2-2 a c d+3 b d^2\right ) \log (c \cos (e+f x)+d \sin (e+f x))}{(b c-a d)^4 \left (c^2+d^2\right )^2 f}+\frac {d \left (a^4 d^3-2 a b^3 c \left (c^2+d^2\right )+2 a^2 b^2 d \left (2 c^2+3 d^2\right )+b^4 d \left (2 c^2+3 d^2\right )\right )}{\left (a^2+b^2\right )^2 (b c-a d)^3 \left (c^2+d^2\right ) f (c+d \tan (e+f x))}-\frac {b^2}{2 \left (a^2+b^2\right ) (b c-a d) f (a+b \tan (e+f x))^2 (c+d \tan (e+f x))}-\frac {b^2 \left (4 a b c-7 a^2 d-3 b^2 d\right )}{2 \left (a^2+b^2\right )^2 (b c-a d)^2 f (a+b \tan (e+f x)) (c+d \tan (e+f x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 7.30, size = 840, normalized size = 1.84 \begin {gather*} -\frac {b^2}{2 \left (a^2+b^2\right ) (b c-a d) f (a+b \tan (e+f x))^2 (c+d \tan (e+f x))}-\frac {-\frac {b^2 \left (-2 a b c+2 a^2 d+3 b^2 d\right )-a \left (-3 a b^2 d+2 b^2 (b c-a d)\right )}{\left (a^2+b^2\right ) (b c-a d) f (a+b \tan (e+f x)) (c+d \tan (e+f x))}-\frac {-\frac {-\frac {b (b c-a d)^3 \left (3 a^2 b c^2-b^3 c^2+2 a^3 c d-6 a b^2 c d-3 a^2 b d^2+b^3 d^2-\frac {\sqrt {-b^2} \left (6 a^2 b c d-2 b^3 c d-a^3 \left (c^2-d^2\right )+3 a b^2 \left (c^2-d^2\right )\right )}{b}\right ) \log \left (\sqrt {-b^2}-b \tan (e+f x)\right )}{\left (a^2+b^2\right ) \left (c^2+d^2\right )}-\frac {2 b^4 \left (c^2+d^2\right ) \left (10 a^3 b c d+2 a b^3 c d-10 a^4 d^2+b^4 \left (c^2-3 d^2\right )-3 a^2 b^2 \left (c^2+3 d^2\right )\right ) \log (a+b \tan (e+f x))}{\left (a^2+b^2\right ) (b c-a d)}-\frac {b (b c-a d)^3 \left (3 a^2 b c^2-b^3 c^2+2 a^3 c d-6 a b^2 c d-3 a^2 b d^2+b^3 d^2+\frac {\sqrt {-b^2} \left (6 a^2 b c d-2 b^3 c d-a^3 \left (c^2-d^2\right )+3 a b^2 \left (c^2-d^2\right )\right )}{b}\right ) \log \left (\sqrt {-b^2}+b \tan (e+f x)\right )}{\left (a^2+b^2\right ) \left (c^2+d^2\right )}-\frac {2 b \left (a^2+b^2\right )^2 d^4 \left (5 b c^2-2 a c d+3 b d^2\right ) \log (c+d \tan (e+f x))}{(b c-a d) \left (c^2+d^2\right )}}{b (-b c+a d) \left (c^2+d^2\right ) f}-\frac {-c \left (-4 a b d (b c-a d)^2+2 b^2 c d \left (4 a b c-7 a^2 d-3 b^2 d\right )\right )-2 d^2 \left (2 a^3 b c d+2 a b^3 c d-a^4 d^2+b^4 \left (c^2-3 d^2\right )-a^2 b^2 \left (c^2+6 d^2\right )\right )}{(-b c+a d) \left (c^2+d^2\right ) f (c+d \tan (e+f x))}}{\left (a^2+b^2\right ) (b c-a d)}}{2 \left (a^2+b^2\right ) (b c-a d)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.39, size = 419, normalized size = 0.92
method | result | size |
derivativedivides | \(\frac {\frac {\frac {\left (-2 a^{3} c d -3 a^{2} b \,c^{2}+3 a^{2} b \,d^{2}+6 a \,b^{2} c d +b^{3} c^{2}-b^{3} d^{2}\right ) \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2}+\left (a^{3} c^{2}-a^{3} d^{2}-6 a^{2} b c d -3 a \,b^{2} c^{2}+3 a \,b^{2} d^{2}+2 b^{3} c d \right ) \arctan \left (\tan \left (f x +e \right )\right )}{\left (a^{2}+b^{2}\right )^{3} \left (c^{2}+d^{2}\right )^{2}}-\frac {b^{3}}{2 \left (a d -b c \right )^{2} \left (a^{2}+b^{2}\right ) \left (a +b \tan \left (f x +e \right )\right )^{2}}+\frac {b^{3} \left (10 a^{4} d^{2}-10 a^{3} b c d +3 a^{2} b^{2} c^{2}+9 a^{2} b^{2} d^{2}-2 a \,b^{3} c d -b^{4} c^{2}+3 b^{4} d^{2}\right ) \ln \left (a +b \tan \left (f x +e \right )\right )}{\left (a d -b c \right )^{4} \left (a^{2}+b^{2}\right )^{3}}-\frac {2 b^{3} \left (2 a^{2} d -a b c +b^{2} d \right )}{\left (a d -b c \right )^{3} \left (a^{2}+b^{2}\right )^{2} \left (a +b \tan \left (f x +e \right )\right )}-\frac {d^{4}}{\left (c^{2}+d^{2}\right ) \left (a d -b c \right )^{3} \left (c +d \tan \left (f x +e \right )\right )}+\frac {d^{4} \left (2 a c d -5 b \,c^{2}-3 b \,d^{2}\right ) \ln \left (c +d \tan \left (f x +e \right )\right )}{\left (c^{2}+d^{2}\right )^{2} \left (a d -b c \right )^{4}}}{f}\) | \(419\) |
default | \(\frac {\frac {\frac {\left (-2 a^{3} c d -3 a^{2} b \,c^{2}+3 a^{2} b \,d^{2}+6 a \,b^{2} c d +b^{3} c^{2}-b^{3} d^{2}\right ) \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2}+\left (a^{3} c^{2}-a^{3} d^{2}-6 a^{2} b c d -3 a \,b^{2} c^{2}+3 a \,b^{2} d^{2}+2 b^{3} c d \right ) \arctan \left (\tan \left (f x +e \right )\right )}{\left (a^{2}+b^{2}\right )^{3} \left (c^{2}+d^{2}\right )^{2}}-\frac {b^{3}}{2 \left (a d -b c \right )^{2} \left (a^{2}+b^{2}\right ) \left (a +b \tan \left (f x +e \right )\right )^{2}}+\frac {b^{3} \left (10 a^{4} d^{2}-10 a^{3} b c d +3 a^{2} b^{2} c^{2}+9 a^{2} b^{2} d^{2}-2 a \,b^{3} c d -b^{4} c^{2}+3 b^{4} d^{2}\right ) \ln \left (a +b \tan \left (f x +e \right )\right )}{\left (a d -b c \right )^{4} \left (a^{2}+b^{2}\right )^{3}}-\frac {2 b^{3} \left (2 a^{2} d -a b c +b^{2} d \right )}{\left (a d -b c \right )^{3} \left (a^{2}+b^{2}\right )^{2} \left (a +b \tan \left (f x +e \right )\right )}-\frac {d^{4}}{\left (c^{2}+d^{2}\right ) \left (a d -b c \right )^{3} \left (c +d \tan \left (f x +e \right )\right )}+\frac {d^{4} \left (2 a c d -5 b \,c^{2}-3 b \,d^{2}\right ) \ln \left (c +d \tan \left (f x +e \right )\right )}{\left (c^{2}+d^{2}\right )^{2} \left (a d -b c \right )^{4}}}{f}\) | \(419\) |
norman | \(\text {Expression too large to display}\) | \(1676\) |
risch | \(\text {Expression too large to display}\) | \(8456\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 1842 vs.
\(2 (462) = 924\).
time = 0.69, size = 1842, normalized size = 4.03 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 4767 vs.
\(2 (462) = 924\).
time = 4.39, size = 4767, normalized size = 10.43 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: NotImplementedError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 1759 vs.
\(2 (462) = 924\).
time = 0.87, size = 1759, normalized size = 3.85 \begin {gather*} \frac {\frac {2 \, {\left (a^{3} c^{2} - 3 \, a b^{2} c^{2} - 6 \, a^{2} b c d + 2 \, b^{3} c d - a^{3} d^{2} + 3 \, a b^{2} d^{2}\right )} {\left (f x + e\right )}}{a^{6} c^{4} + 3 \, a^{4} b^{2} c^{4} + 3 \, a^{2} b^{4} c^{4} + b^{6} c^{4} + 2 \, a^{6} c^{2} d^{2} + 6 \, a^{4} b^{2} c^{2} d^{2} + 6 \, a^{2} b^{4} c^{2} d^{2} + 2 \, b^{6} c^{2} d^{2} + a^{6} d^{4} + 3 \, a^{4} b^{2} d^{4} + 3 \, a^{2} b^{4} d^{4} + b^{6} d^{4}} - \frac {{\left (3 \, a^{2} b c^{2} - b^{3} c^{2} + 2 \, a^{3} c d - 6 \, a b^{2} c d - 3 \, a^{2} b d^{2} + b^{3} d^{2}\right )} \log \left (\tan \left (f x + e\right )^{2} + 1\right )}{a^{6} c^{4} + 3 \, a^{4} b^{2} c^{4} + 3 \, a^{2} b^{4} c^{4} + b^{6} c^{4} + 2 \, a^{6} c^{2} d^{2} + 6 \, a^{4} b^{2} c^{2} d^{2} + 6 \, a^{2} b^{4} c^{2} d^{2} + 2 \, b^{6} c^{2} d^{2} + a^{6} d^{4} + 3 \, a^{4} b^{2} d^{4} + 3 \, a^{2} b^{4} d^{4} + b^{6} d^{4}} + \frac {2 \, {\left (3 \, a^{2} b^{6} c^{2} - b^{8} c^{2} - 10 \, a^{3} b^{5} c d - 2 \, a b^{7} c d + 10 \, a^{4} b^{4} d^{2} + 9 \, a^{2} b^{6} d^{2} + 3 \, b^{8} d^{2}\right )} \log \left ({\left | b \tan \left (f x + e\right ) + a \right |}\right )}{a^{6} b^{5} c^{4} + 3 \, a^{4} b^{7} c^{4} + 3 \, a^{2} b^{9} c^{4} + b^{11} c^{4} - 4 \, a^{7} b^{4} c^{3} d - 12 \, a^{5} b^{6} c^{3} d - 12 \, a^{3} b^{8} c^{3} d - 4 \, a b^{10} c^{3} d + 6 \, a^{8} b^{3} c^{2} d^{2} + 18 \, a^{6} b^{5} c^{2} d^{2} + 18 \, a^{4} b^{7} c^{2} d^{2} + 6 \, a^{2} b^{9} c^{2} d^{2} - 4 \, a^{9} b^{2} c d^{3} - 12 \, a^{7} b^{4} c d^{3} - 12 \, a^{5} b^{6} c d^{3} - 4 \, a^{3} b^{8} c d^{3} + a^{10} b d^{4} + 3 \, a^{8} b^{3} d^{4} + 3 \, a^{6} b^{5} d^{4} + a^{4} b^{7} d^{4}} - \frac {2 \, {\left (5 \, b c^{2} d^{5} - 2 \, a c d^{6} + 3 \, b d^{7}\right )} \log \left ({\left | d \tan \left (f x + e\right ) + c \right |}\right )}{b^{4} c^{8} d - 4 \, a b^{3} c^{7} d^{2} + 6 \, a^{2} b^{2} c^{6} d^{3} + 2 \, b^{4} c^{6} d^{3} - 4 \, a^{3} b c^{5} d^{4} - 8 \, a b^{3} c^{5} d^{4} + a^{4} c^{4} d^{5} + 12 \, a^{2} b^{2} c^{4} d^{5} + b^{4} c^{4} d^{5} - 8 \, a^{3} b c^{3} d^{6} - 4 \, a b^{3} c^{3} d^{6} + 2 \, a^{4} c^{2} d^{7} + 6 \, a^{2} b^{2} c^{2} d^{7} - 4 \, a^{3} b c d^{8} + a^{4} d^{9}} + \frac {2 \, {\left (5 \, b c^{2} d^{5} \tan \left (f x + e\right ) - 2 \, a c d^{6} \tan \left (f x + e\right ) + 3 \, b d^{7} \tan \left (f x + e\right ) + 6 \, b c^{3} d^{4} - 3 \, a c^{2} d^{5} + 4 \, b c d^{6} - a d^{7}\right )}}{{\left (b^{4} c^{8} - 4 \, a b^{3} c^{7} d + 6 \, a^{2} b^{2} c^{6} d^{2} + 2 \, b^{4} c^{6} d^{2} - 4 \, a^{3} b c^{5} d^{3} - 8 \, a b^{3} c^{5} d^{3} + a^{4} c^{4} d^{4} + 12 \, a^{2} b^{2} c^{4} d^{4} + b^{4} c^{4} d^{4} - 8 \, a^{3} b c^{3} d^{5} - 4 \, a b^{3} c^{3} d^{5} + 2 \, a^{4} c^{2} d^{6} + 6 \, a^{2} b^{2} c^{2} d^{6} - 4 \, a^{3} b c d^{7} + a^{4} d^{8}\right )} {\left (d \tan \left (f x + e\right ) + c\right )}} - \frac {9 \, a^{2} b^{7} c^{2} \tan \left (f x + e\right )^{2} - 3 \, b^{9} c^{2} \tan \left (f x + e\right )^{2} - 30 \, a^{3} b^{6} c d \tan \left (f x + e\right )^{2} - 6 \, a b^{8} c d \tan \left (f x + e\right )^{2} + 30 \, a^{4} b^{5} d^{2} \tan \left (f x + e\right )^{2} + 27 \, a^{2} b^{7} d^{2} \tan \left (f x + e\right )^{2} + 9 \, b^{9} d^{2} \tan \left (f x + e\right )^{2} + 22 \, a^{3} b^{6} c^{2} \tan \left (f x + e\right ) - 2 \, a b^{8} c^{2} \tan \left (f x + e\right ) - 72 \, a^{4} b^{5} c d \tan \left (f x + e\right ) - 28 \, a^{2} b^{7} c d \tan \left (f x + e\right ) - 4 \, b^{9} c d \tan \left (f x + e\right ) + 68 \, a^{5} b^{4} d^{2} \tan \left (f x + e\right ) + 66 \, a^{3} b^{6} d^{2} \tan \left (f x + e\right ) + 22 \, a b^{8} d^{2} \tan \left (f x + e\right ) + 14 \, a^{4} b^{5} c^{2} + 3 \, a^{2} b^{7} c^{2} + b^{9} c^{2} - 44 \, a^{5} b^{4} c d - 26 \, a^{3} b^{6} c d - 6 \, a b^{8} c d + 39 \, a^{6} b^{3} d^{2} + 41 \, a^{4} b^{5} d^{2} + 14 \, a^{2} b^{7} d^{2}}{{\left (a^{6} b^{4} c^{4} + 3 \, a^{4} b^{6} c^{4} + 3 \, a^{2} b^{8} c^{4} + b^{10} c^{4} - 4 \, a^{7} b^{3} c^{3} d - 12 \, a^{5} b^{5} c^{3} d - 12 \, a^{3} b^{7} c^{3} d - 4 \, a b^{9} c^{3} d + 6 \, a^{8} b^{2} c^{2} d^{2} + 18 \, a^{6} b^{4} c^{2} d^{2} + 18 \, a^{4} b^{6} c^{2} d^{2} + 6 \, a^{2} b^{8} c^{2} d^{2} - 4 \, a^{9} b c d^{3} - 12 \, a^{7} b^{3} c d^{3} - 12 \, a^{5} b^{5} c d^{3} - 4 \, a^{3} b^{7} c d^{3} + a^{10} d^{4} + 3 \, a^{8} b^{2} d^{4} + 3 \, a^{6} b^{4} d^{4} + a^{4} b^{6} d^{4}\right )} {\left (b \tan \left (f x + e\right ) + a\right )}^{2}}}{2 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 34.61, size = 1421, normalized size = 3.11 \begin {gather*} -\frac {\frac {2\,a^6\,d^4+4\,a^4\,b^2\,d^4+9\,a^3\,b^3\,c^3\,d+9\,a^3\,b^3\,c\,d^3-5\,a^2\,b^4\,c^4-5\,a^2\,b^4\,c^2\,d^2+2\,a^2\,b^4\,d^4+5\,a\,b^5\,c^3\,d+5\,a\,b^5\,c\,d^3-b^6\,c^4-b^6\,c^2\,d^2}{2\,\left (a^3\,d^3-3\,a^2\,b\,c\,d^2+3\,a\,b^2\,c^2\,d-b^3\,c^3\right )\,\left (a^4\,c^2+a^4\,d^2+2\,a^2\,b^2\,c^2+2\,a^2\,b^2\,d^2+b^4\,c^2+b^4\,d^2\right )}+\frac {\mathrm {tan}\left (e+f\,x\right )\,\left (4\,a^5\,b\,d^4+9\,a^3\,b^3\,c^2\,d^2+17\,a^3\,b^3\,d^4+3\,a^2\,b^4\,c^3\,d+3\,a^2\,b^4\,c\,d^3-4\,a\,b^5\,c^4+a\,b^5\,c^2\,d^2+9\,a\,b^5\,d^4+3\,b^6\,c^3\,d+3\,b^6\,c\,d^3\right )}{2\,\left (a^3\,d^3-3\,a^2\,b\,c\,d^2+3\,a\,b^2\,c^2\,d-b^3\,c^3\right )\,\left (a^4\,c^2+a^4\,d^2+2\,a^2\,b^2\,c^2+2\,a^2\,b^2\,d^2+b^4\,c^2+b^4\,d^2\right )}+\frac {{\mathrm {tan}\left (e+f\,x\right )}^2\,\left (a^4\,b^2\,d^4+4\,a^2\,b^4\,c^2\,d^2+6\,a^2\,b^4\,d^4-2\,a\,b^5\,c^3\,d-2\,a\,b^5\,c\,d^3+2\,b^6\,c^2\,d^2+3\,b^6\,d^4\right )}{\left (a^3\,d^3-3\,a^2\,b\,c\,d^2+3\,a\,b^2\,c^2\,d-b^3\,c^3\right )\,\left (a^4\,c^2+a^4\,d^2+2\,a^2\,b^2\,c^2+2\,a^2\,b^2\,d^2+b^4\,c^2+b^4\,d^2\right )}}{f\,\left (\mathrm {tan}\left (e+f\,x\right )\,\left (d\,a^2+2\,b\,c\,a\right )+a^2\,c+{\mathrm {tan}\left (e+f\,x\right )}^2\,\left (c\,b^2+2\,a\,d\,b\right )+b^2\,d\,{\mathrm {tan}\left (e+f\,x\right )}^3\right )}-\frac {\ln \left (a+b\,\mathrm {tan}\left (e+f\,x\right )\right )\,\left (d\,\left (10\,c\,a^3\,b^4+2\,c\,a\,b^6\right )-d^2\,\left (10\,a^4\,b^3+9\,a^2\,b^5+3\,b^7\right )+b^7\,c^2-3\,a^2\,b^5\,c^2\right )}{f\,\left (a^{10}\,d^4-4\,a^9\,b\,c\,d^3+6\,a^8\,b^2\,c^2\,d^2+3\,a^8\,b^2\,d^4-4\,a^7\,b^3\,c^3\,d-12\,a^7\,b^3\,c\,d^3+a^6\,b^4\,c^4+18\,a^6\,b^4\,c^2\,d^2+3\,a^6\,b^4\,d^4-12\,a^5\,b^5\,c^3\,d-12\,a^5\,b^5\,c\,d^3+3\,a^4\,b^6\,c^4+18\,a^4\,b^6\,c^2\,d^2+a^4\,b^6\,d^4-12\,a^3\,b^7\,c^3\,d-4\,a^3\,b^7\,c\,d^3+3\,a^2\,b^8\,c^4+6\,a^2\,b^8\,c^2\,d^2-4\,a\,b^9\,c^3\,d+b^{10}\,c^4\right )}-\frac {\ln \left (c+d\,\mathrm {tan}\left (e+f\,x\right )\right )\,\left (b\,\left (5\,c^2\,d^4+3\,d^6\right )-2\,a\,c\,d^5\right )}{f\,\left (a^4\,c^4\,d^4+2\,a^4\,c^2\,d^6+a^4\,d^8-4\,a^3\,b\,c^5\,d^3-8\,a^3\,b\,c^3\,d^5-4\,a^3\,b\,c\,d^7+6\,a^2\,b^2\,c^6\,d^2+12\,a^2\,b^2\,c^4\,d^4+6\,a^2\,b^2\,c^2\,d^6-4\,a\,b^3\,c^7\,d-8\,a\,b^3\,c^5\,d^3-4\,a\,b^3\,c^3\,d^5+b^4\,c^8+2\,b^4\,c^6\,d^2+b^4\,c^4\,d^4\right )}-\frac {\ln \left (\mathrm {tan}\left (e+f\,x\right )-\mathrm {i}\right )\,1{}\mathrm {i}}{2\,f\,\left (a^3\,c^2+a^3\,c\,d\,2{}\mathrm {i}-a^3\,d^2+a^2\,b\,c^2\,3{}\mathrm {i}-6\,a^2\,b\,c\,d-a^2\,b\,d^2\,3{}\mathrm {i}-3\,a\,b^2\,c^2-a\,b^2\,c\,d\,6{}\mathrm {i}+3\,a\,b^2\,d^2-b^3\,c^2\,1{}\mathrm {i}+2\,b^3\,c\,d+b^3\,d^2\,1{}\mathrm {i}\right )}+\frac {\ln \left (\mathrm {tan}\left (e+f\,x\right )+1{}\mathrm {i}\right )\,1{}\mathrm {i}}{2\,f\,\left (a^3\,c^2-a^3\,c\,d\,2{}\mathrm {i}-a^3\,d^2-a^2\,b\,c^2\,3{}\mathrm {i}-6\,a^2\,b\,c\,d+a^2\,b\,d^2\,3{}\mathrm {i}-3\,a\,b^2\,c^2+a\,b^2\,c\,d\,6{}\mathrm {i}+3\,a\,b^2\,d^2+b^3\,c^2\,1{}\mathrm {i}+2\,b^3\,c\,d-b^3\,d^2\,1{}\mathrm {i}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________